WeDevs\Dokan\REST\OrderController C

Total Complexity 105
Dependencies 5
Dependents 0
Total lines 1,818
Lines of code 1,422
Logical lines of code 232
Comment lines 247
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
get_item_schema()
D
12
1 836
get_order_item_data()
A
46 14 33
get_formatted_item_data()
A
38 8 71
get_items()
A
46 9 37
get_order_notes()
A
45 7 41
delete_order_note()
A
51 8 23
prepare_object_for_database()
A
47 7 36
register_routes()
S
36 1 109
get_order_note()
S
54 7 18
create_order_note()
S
49 6 26
validation_before_update_item()
S
57 5 15
prepare_links()
S
55 3 21
get_collection_params()
S
45 1 50
get_single_order_permissions_check()
S
64 4 10
update_order_permissions_check()
S
64 3 10
pre_insert_shop_order()
S
65 3 9
rest_validate_customer_id()
S
65 3 9
prepare_note_item_for_response()
S
58 2 14
get_item()
S
64 2 9
set_order_vendor_id()
S
71 2 6
get_order_statuses()
S
68 2 7
get_order_summary()
S
69 1 7
prepare_data_for_response()
S
67 1 7
get_orders_permissions_check()
S
80 1 3
check_orders_summary_permissions()
S
80 1 3
after_order_create()
S
81 1 3
get_object()
S
80 1 3
__construct()
S
68 1 6